<div class="container" [ngStyle]="{height: sliderHeight}">
  <div class="image-slider" #imageSlider (scroll)="handleScroll($event)">
    <img
      #img
      *ngFor="let slider of sliders;"
      [src]="slider.imgUrl"
      [alt]="slider.caption"
    />
  </div>
  <div class="nav-section">
    <span
      *ngFor="let slider of sliders; let idx = index;"
      [title]="slider.caption"
      class="slide-button"
      [ngClass]="{'slide-button-selected': selectedIndex === idx}"
    ></span>
  </div>
</div>
